home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / gus / sdkdigv2.zip / SDKV2N19.TXT < prev    next >
Text File  |  1993-06-25  |  5KB  |  157 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. GUS Programmer's Digest     Fri Jun 25 00:07     Volume 2: Issue  19  
  7.  
  8. Today's Topics:
  9.                         DMA Buffers in PC RAM
  10.                          GUS' Timer Precision
  11.                GUS Programmer's Digest V2 #18 (2 msgs)
  12.  
  13. Standard Info:
  14.     - Meta-info about the GUS can be found at the end of the Digest.
  15.     - Before you ask a question, please READ THE FAQ.
  16.  
  17. ----------------------------------------------------------------------
  18.  
  19. Date: Thu, 24 Jun 93 15:33:13 EDT
  20. From: davidm@opl.com
  21. Subject: DMA Buffers in PC RAM
  22. Message-ID: <AFD5D17B-D17C0001@woodstock.opl.com>
  23.  
  24. I know, my third message in one day.  Pardon my bandwidth
  25. overutilization :-)
  26.  
  27. I know that if you call UltraStartRecord with the AutoInit
  28. flag set, it will return an error if the autoinit buffer crosses
  29. a 64K boundry.  It is my understanding that the PC DMA
  30. controller generates only the 16 low order bits of an address
  31. while the 4 high order bits are stored in a "page register" (or
  32. something like that).  This indicates to me that the entire DMA
  33. buffer (regardless of its size) must reside within a single 64K 
  34. page of memory.  This leads me to the following questions:
  35.  
  36. 1) Is it true that the entire DMA buffer (regardless of its size)
  37.    must reside within a single 64K page of memory?
  38.  
  39. 2) If so, does anyone know how I can allocate memory that
  40.    will be garunteed to all be within a single 64K page of 
  41.    memory?
  42.  
  43. Regarding question two, I know that if I allocate a block of
  44. memory that is twice the size of my desired buffer (assuming 
  45. that my desired buffer size is less than 32768), then a block
  46. will exist somewhere within that oversized block that will reside
  47. in a single 64K page.  Is there a cleaner way?  I looked in the
  48. FAQ of comp.os.msdos.programmer and didn't see anything
  49. about this in there.
  50.  
  51. Thanks for your help,
  52. Dave
  53.  
  54. David MacMahon
  55. Systems Administrator
  56. davidm@opl.com
  57.  
  58. ------------------------------
  59.  
  60. Date: Thu, 24 Jun 93 12:05:28 EDT
  61. From: davidm@opl.com
  62. Subject: GUS' Timer Precision
  63. Message-ID: <AFD5A0C9-A0CA0001@woodstock.opl.com>
  64.  
  65. I have a question about the GUS' timers.
  66.  
  67. The SDK says that the ticks of timer 1 are 80us the ticks
  68. of timer 2 are 320us.  Are these exact values?  I assume
  69. that there is an oscillator on the GUS whose frequency is 
  70. divided down to give these times, but do the frequency and
  71. the divisor work out to exactly 80us for timer 1?  I also
  72. assume that the freq. of timer 2 exactly equals 1/4 the freq.
  73. of timer 1.
  74.  
  75. Assuming my first assumption is correct, does anyone know 
  76. the frequency of the oscillator and/or the value by which it
  77. is divided?
  78.  
  79. Thanks for any input,
  80. Dave
  81.  
  82. David MacMahon
  83. Systems Administrator
  84. davidm@opl.com
  85.  
  86. ------------------------------
  87.  
  88. Date: Thu, 24 Jun 93 09:11:22 EDT
  89. From: dulimart@cps.msu.edu (Hansye S. Dulimarta)
  90. Subject: GUS Programmer's Digest V2 #18
  91. Message-ID: <9306241311.AA21345@pixel.cps.msu.edu>
  92.  
  93.    Date: Wed, 23 Jun 93 15:11:12 EDT
  94.    From: dulimart@cps.msu.edu (Hansye S. Dulimarta)
  95.    Subject: Gravis/FORTE - Please read this!!!
  96.    Message-ID: <9306231911.AA18594@pixel.cps.msu.edu>
  97.  
  98. I'm reading today's digest (Thu, 24 Jun 1993) and found out that I have
  99. put a wrong subject in my posting.  When the above posting was sent, I
  100. was reading Dave MacMahon's posting (david@opl.com) and used "reply"
  101. from my emacs' rmail to save my time.  Please apologize if the previous
  102. subject was inappropriate.
  103.  
  104. Happy GUS hacking,
  105.  
  106.     Hans.
  107.  
  108. ------------------------------
  109.  
  110. Date: Thu, 24 Jun 93 11:50:55 EDT
  111. From: davidm@opl.com
  112. Subject: Re: GUS Programmer's Digest V2 #18
  113. Message-ID: <AFD59D60-9D610001@woodstock.opl.com>
  114.  
  115. In GUS Programmer's Digest V2 #18, 
  116. dulimart@cps.msu.edu (Hansye S. Dulimarta) wrote:
  117.  
  118. > This is what I'm doing: Using the information in the file PATCH.H in the
  119. > SDK documentation, I was able to write a program that reads a patch file
  120. > and parses the data in it. Then, using the function UltraDownload, the
  121. > program downloaded the sample waveform to the GUS DRAM, and then
  122. > UltraVoiceOn is called.  But.....no sound came out of my speaker.  Could
  123. > anybody tell me what I'm doing wrong here?
  124.  
  125. I have two ideas:
  126.  
  127. 1) Did you call UltraEnableOutput?
  128. 2) Did you call UltraSetVolume?
  129.  
  130. If you don't enable the output and give the voice some volume, you
  131. won't hear any sound.
  132.  
  133. Hope this helps,
  134. Dave
  135.  
  136. David MacMahon
  137. Systems Administrator
  138. davidm@opl.com
  139.  
  140. ------------------------------
  141.  
  142. End of GUS Programmer's Digest V2 #19
  143. *************************************
  144.  
  145. To post to tomorrow's digest:               <gus-sdk%itchy@dsd.es.com>
  146. To (un)subscribe or get help:       <gus-sdk-request%itchy@dsd.es.com>
  147. To contact a human (last resort):     <gus-sdk-owner%itchy@dsd.es.com>
  148.  
  149. FTP sites:         archive.epas.utoronto.ca         pub/pc/ultrasound
  150.                    wuarchive.wustl.edu       systems/msdos/ultrasound
  151. Hints:
  152.       - Get the FAQ from the FTP sites or the request server.
  153.       - Mail to <gus-sdk-request%itchy@dsd.es.com> for info about
  154.     other GUS related mailing lists (UNIX, OS/2, GUS-MIDI, etc.)
  155.  
  156.  
  157.